<template>
  <div>
    <ul class="mui-table-view">
				<li class="mui-table-view-cell mui-media" v-for="item in newsList" :key="item.id">
					<router-link :to="'/home/newsinfo/'+item.id">
						<img class="mui-media-object mui-pull-left" :src="item.src">
						<div class="mui-media-body">
							<h3>{{item.msg}}</h3>
							<p class='mui-ellipsis'>
                <span>发表时间：{{item.date|dataFor}}</span> 
                <span>点击: {{item.clickNum}}次</span>  
              </p>
						</div>
					</router-link>
				</li>
			</ul>
  </div>
</template>
<script>
var obj = JSON.parse(localStorage.getItem('news'));
export default {
  data(){
    return {
      newsList:obj
    }
  },
  methods:{

  }
}
</script>
<style lang="scss" >
  .mui-table-view {
    h3 {
      font-size: 14px;
    }
    .mui-ellipsis {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: #226aff;
    }
  }
</style>